//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03B
TN_Widget.CreateTable([['World Ballet Festival - Opening Gala','Pantages Theatre - MN','Minneapolis, MN','Friday','6/7/2024','7:00 PM','6240362','World-Ballet-Festival---Opening-Gala-6-7-2024'],['World Ballet Festival: Ballet Blockbusters','Pantages Theatre - MN','Minneapolis, MN','Saturday','6/8/2024','7:00 PM','6220950','World-Ballet-Festival--Ballet-Blockbusters-6-8-2024'],['World Ballet Festival - Closing Gala','Pantages Theatre - MN','Minneapolis, MN','Sunday','6/9/2024','6:00 PM','6240361','World-Ballet-Festival---Closing-Gala-6-9-2024'],['Hasan Minhaj','Pantages Theatre - MN','Minneapolis, MN','Friday','6/21/2024','7:00 PM','6372405','Hasan-Minhaj-6-21-2024'],['Graham Nash','Pantages Theatre - MN','Minneapolis, MN','Friday','8/16/2024','7:00 PM','6278322','Graham-Nash-8-16-2024'],['Bassem Youssef','Pantages Theatre - MN','Minneapolis, MN','Saturday','9/14/2024','7:00 PM','6441446','Bassem-Youssef-9-14-2024'],['Morgan Jay','Pantages Theatre - MN','Minneapolis, MN','Saturday','9/21/2024','7:00 PM','6315355','Morgan-Jay-9-21-2024'],['Kathy Griffin','Pantages Theatre - MN','Minneapolis, MN','Friday','10/11/2024','8:00 PM','6346008','Kathy-Griffin-10-11-2024'],['Mania - The ABBA Tribute','Pantages Theatre - MN','Minneapolis, MN','Thursday','10/17/2024','7:30 PM','6401259','Mania---The-ABBA-Tribute-10-17-2024'],['Stayin' Alive - A Salute To The Music of The Bee Gees','Pantages Theatre - MN','Minneapolis, MN','Saturday','10/19/2024','7:30 PM','6053089','Stayin--Alive---A-Salute-To-The-Music-of-The-Bee-Gees-10-19-2024'],['Jim Brickman','Pantages Theatre - MN','Minneapolis, MN','Saturday','12/7/2024','8:00 PM','6438469','Jim-Brickman-12-7-2024']],'Pantages Theatre Minneapolis','http://www.ticketnetwork.com/ticket/Pantages-Theatre-Minneapolis-events.aspx');